import json


def load_jsonl(path):
    with open(path, 'r', encoding='utf-8') as f:
        return [json.loads(line) for line in f]


def saveJsonl(filePath: str, datas: list) -> None:
    with open(filePath, "w", encoding="utf-8") as f:
        for item in datas:
            json.dump(item, f, ensure_ascii=False)
            f.write("\n")
